using UnityEngine;
using System.Collections;

public class hoverFollow : MonoBehaviour {

	public GameObject player;
	private float step = 13.0f;
	
	// Use this for initialization
	void Start () {
		transform.FindChild("Cube").rigidbody.AddTorque (Vector3.up * 10);
	}
	
	// Update is called once per frame
	void Update () {
		Vector3 pos2 = player.transform.position;
		pos2.y += 1.0f;
		transform.position = Vector3.MoveTowards(transform.position, pos2, step*Time.deltaTime);
	}
}
